package com.av.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MemberOptionsActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_member_options);
		((TextView)findViewById(R.id.username_title)).setText(LoginActivity.user.getUsername());
	}

	public void addReport(View v){
		startActivity(new Intent(this, MemberActivity.class));
	}
	public void searchViolations(View v){
		Intent i = new Intent(this, SearchActivity2.class);
		i.putExtra("url", "http://titan.cmpe.boun.edu.tr:8085/cmpe451Web/searchPage.jsp");
		startActivity(i);
		
	}
	public void viewSubscriptions(View v){
		Intent i = new Intent(this, ResultsActivity.class);
		i.putExtra("subscriptions", true);
		startActivity(i);
		
	}
	public void viewReports(View v){
		Intent i = new Intent(this, ResultsActivity.class);
		i.putExtra("myreports", true);
		startActivity(i);
	}
	public void logout(View v){
		finish();
	}


}
